<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/uploadify/uploadify.css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/resources/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript">


$(function() {
    $("#file_upload_1").uploadify({
        'swf'             : '<%=request.getContextPath()%>/uploadify/uploadify.swf',
        'uploader'        : 'http://localhost:8000/FileManager/upload',
        'buttonText'      : '选择文件',
        'onUploadSuccess' : function(file, data, response) {
        	alert(data.result);
            alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
        }
    });
});
</script>

</head>
<body>

<input type="button" name="file_upload_1" id="file_upload_1" value="upload"/>

</body>
</html>